load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")

go_library(
    name = "server_lib",
    srcs = [
        "main.go",
        "wire_gen.go",
    ],
    importpath = "kratos-cms/app/admin/service/cmd/server",
    visibility = ["//visibility:private"],
    deps = [
        "//app/admin/service/internal/data",
        "//app/admin/service/internal/server",
        "//app/admin/service/internal/service",
        "//gen/api/go/common/conf",
        "//pkg/bootstrap",
        "//pkg/service",
        "@com_github_go_kratos_kratos_v2//:kratos",
        "@com_github_go_kratos_kratos_v2//log",
        "@com_github_go_kratos_kratos_v2//registry",
        "@com_github_go_kratos_kratos_v2//transport/http",
    ],
)

go_binary(
    name = "server",
    embed = [":server_lib"],
    visibility = ["//visibility:public"],
)
